home *** CD-ROM | disk | FTP | other *** search
- /*
- Call_APPL
-
- Function: call the interface module for transmit the appropriate
- request.
-
- CopyRight 1995. Nicholas Poljakov all rights reserved.
-
- */
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <malloc.h>
- #include <dos.h>
-
- char *cgetmem(int n, int s)
- {
- return calloc(n, s);
- }
-
- char *call_appl(void *p)
- {
- char _near *t1;
- char _near *t2;
-
- t1 = FP_OFF( p );
- t2 = FP_SEG( p );
- _asm {
- push ds
- mov dx, word ptr t1[0]
- mov ax, word ptr t2[0]
- mov ds, ax
- xor ax, ax
- int 65h
- pop ds
- }
- return p;
- }
-